package com.cys.dm.client.scheduler;

import com.cys.dm.entity.scheduler.DmSchedulerSeatPrice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dm-scheduler-provider")
@Component
public interface DmSchedulerSeatPriceClient {

    @PostMapping(path = "/queryItemPrice")
    public List<DmSchedulerSeatPrice> queryItemPrice(@RequestParam Long scheduleId);

    @PostMapping(path = "/findSeatPriceByScheduleIdAndLevel/{scheduleId}/{level}")
    public DmSchedulerSeatPrice findSeatPriceByScheduleIdAndLevel(@PathVariable Long scheduleId,
                                                                  @PathVariable Long level);

    @PostMapping(path = {"findSchedulerSeatPriceBySchedulerId/{schedulerId}"})
    public List<DmSchedulerSeatPrice> findSchedulerSeatPriceBySchedulerId(@PathVariable("schedulerId")Long schedulerId);
}
